<%@ page language="java" contentType="text/html;"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="userid" value="${ sessionScope.userId }"/>
<div id="freetitle">
	<img src="img/writertitle.jpg">
</div>
<div class="freeBoard">
	
	<div class="freebt">
		<p>
			<br> 건전한 게시판 문화를 정착시키기 위해 상업적 광고, 저속한 표현의 글, 불건전한 내용은 임의로 삭제될 수
			있음을 알려드리오니 이용자 여러분의 많은 협조 부탁드립니다.
		</p>
	</div>

	<form name="writeForm" action="write.mvc" method="post"
		onsubmit="return formCheck();">

		<input type="hidden" name="no" value="${ no }" /> 
		<input type="hidden" name="pageNum" value="${ pageNum }" />

		<table class="freewriteTable">
			<tr>
				<th class="btitle">글제목</th>
				<td><input type="text" name="title"></td>
			</tr>
		
			<tr>
				<th>글쓴이</th>
				<td><input type="text" name="writer" value="${ userid }" readonly="readonly" /></td>
			</tr>
			<tr>
				<th>내용</th>
				<td><textarea rows="15" id="con" name="content"></textarea></td>
			</tr>
			<tr>
				<th>비밀번호</th>
				<td><input type="password" name="pass" /></td>
			</tr>
		</table>
		<div class="btn_area">
    		<button type="submit" class="btn btn-success" id="submitbtn">확인</button>			
			&nbsp;
			<button type="reset" class="btn" id="resetbtn">취소</button>
			&nbsp;
			<button class="btn" type="button"
				onclick="document.location.href='list.mvc?pageNum=${ pageNum }';">
				목록</button>
		</div>
	</form>
</div>